import Vue from 'vue'
import Vuex from 'vuex'
import actions from './action'
import mutations from './mutations'

Vue.use(Vuex)

const state = {
	username:'',//登录用户名
	cartCount:0,//购物车商品数量
	userIsLogin:false,
	catchAllGoodsId:[],
	userSelectSize:'中',
	userSelectTemp:'默认冰',
	userSelectSugar:'默认糖',
}

const store = new Vuex.Store({
  state,
  actions,
  mutations,
})

export default store